package com.zhuoshi.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.zhuoshi.entity.Openingreport;
import com.zhuoshi.entity.OpeningreporthouseparticularCustom;
import com.zhuoshi.service.OpeningreporthouseparticularService;

@RequestMapping("openingreporthouseparticular")
@Controller
public class OpeningreporthouseparticularController {
	@Autowired
	private OpeningreporthouseparticularService openingreporthouseparticularService;
//	审核列表（查询了所有开盘明细）
	@RequestMapping("selectOpeningreporthouseparticularAll")
	public ModelAndView selectOpeningreporthouseparticularAll() throws Exception{
		List<OpeningreporthouseparticularCustom> openingreporthouseparticularCustoms=openingreporthouseparticularService.selectOpeningreporthouseparticularAll();
		ModelAndView modelAndView=new ModelAndView();
		modelAndView.addObject("openingreporthouseparticularCustoms", openingreporthouseparticularCustoms);
		modelAndView.setViewName("/Admin/second/shenhebaogao.jsp");
		return modelAndView;
	}
	
//	审核列表（通过审核）
	@RequestMapping("selectOpeningreporthouseparticularAllYes")
	public ModelAndView selectOpeningreporthouseparticularAllYes(Integer id) throws Exception{
		List<OpeningreporthouseparticularCustom> openingreporthouseparticularCustoms=openingreporthouseparticularService.selectOpeningreporthouseparticularAllYes(id);
		ModelAndView modelAndView=new ModelAndView();
		modelAndView.addObject("openingreporthouseparticularCustoms", openingreporthouseparticularCustoms);
		modelAndView.setViewName("/Admin/second/shenhebaogao.jsp");
		return modelAndView;
	}
}
